<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "hongbao_log".
 *
 * @property integer $id
 * @property string $open_id
 * @property string $account
 * @property string $return_code
 * @property string $return_msg
 * @property string $result_code
 * @property string $result_msg
 * @property integer $create_time
 */
class HongbaoLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'hongbao_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['id', 'create_time'], 'integer'],
            [['open_id'], 'string', 'max' => 500],
            [['account'], 'string', 'max' => 10],
            [['return_code', 'result_code'], 'string', 'max' => 20],
            [['return_msg'], 'string', 'max' => 100],
            [['result_msg'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'open_id' => 'Open ID',
            'account' => 'Account',
            'return_code' => 'Return Code',
            'return_msg' => 'Return Msg',
            'result_code' => 'Result Code',
            'result_msg' => 'Result Msg',
            'create_time' => 'Create Time',
        ];
    }
}
